define(function(require, exports){
  'use strict';
  exports.getKeyName = function(key){
  	var name;
  	switch(key){
  		//控制键键码值(keyCode)
  		/*case 8:
		name = 'BackSpace';
		break;*/
		case 9:
		name = 'Tab';
		break;
		case 12:
		name = 'Clear';
		break;
		case 13:
		name = 'Enter';
		break;
		case 16:
		name = 'Shift';
		break;
		case 17:
		name = 'Control';
		break;
		case 18:
		name = 'Alt';
		break;
		case 20:
		name = 'Cape Lock';
		break;
		case 27:
		name = 'Esc';
		break;
		case 32:
		name = 'Spacebar';
		break;
		case 33:
		name = 'Page Up';
		break;
		case 34:
		name = 'Page Down';
		break;
		case 35:
		name = 'End';
		break;
		case 36:
		name = 'Home';
		break;
		case 37:
		name = 'Left Arrow';
		break;
		case 38:
		name = 'Up Arrow';
		break;
		case 39:
		name = 'Right Arrow';
		break;
		case 40:
		name = 'Dw Arrow';
		break;
		case 45:
		name = 'Insert';
		break;
		case 46:
		name = 'Delete';
		break;
		case 144:
		name = 'Num Lock';
		break;
		case 186:
		name = ';:';
		break;
		case 187:
		name = '=+';
		break;
		case 188:
		name = ',<';
		break;
		case 189:
		name = '-_';
		break;
		case 190:
		name = '.>';
		break;
		case 191:
		name = '/?';
		break;
		case 192:
		name = '`~';
		break;
		case 219:
		name = '[{';
		break;
		case 220:
		name = '\|';
		break;
		case 221:
		name = '\|';
		break;
		case 222:
		name = '"';
		break;
  		//字母和数字键的键码值(keyCode)
  		case 48:
		name = '0';
		break;
		case 49:
		name = '1';
		break;
		case 50:
		name = '2';
		break;
		case 51:
		name = '3';
		break;
		case 52:
		name = '4';
		break;
		case 53:
		name = '5';
		break;
		case 54:
		name = '6';
		break;
		case 55:
		name = '7';
		break;
		case 56:
		name = '8';
		break;
		case 57:
		name = '9';
		break;
		case 65:
		name = 'A';
		break;
		case 66:
		name = 'B';
		break;
		case 67:
		name = 'C';
		break;
		case 68:
		name = 'D';
		break;
		case 69:
		name = 'E';
		break;
		case 70:
		name = 'F';
		break;
		case 71:
		name = 'G';
		break;
		case 72:
		name = 'H';
		break;
		case 73:
		name = 'I';
		break; 
		case 74:
		name = 'J';
		break;
		case 75:
		name = 'K';
		break;
		case 76:
		name = 'L';
		break;
		case 77:
		name = 'M';
		break;
		case 78:
		name = 'N';
		break;
		case 79:
		name = 'O';
		break;
		case 80:
		name = 'P';
		break;
		case 81:
		name = 'Q';
		break;
		case 82:
		name = 'R';
		break;
		case 83:
		name = 'S';
		break;
		case 84:
		name = 'T';
		break;
		case 85:
		name = 'U';
		break;
		case 86:
		name = 'V';
		break;
		case 87:
		name = 'W';
		break;
		case 88:
		name = 'X';
		break;
		case 89:
		name = 'Y';
		break;
		case 90:
		name = 'Z';
		break;
		//数字键盘上的键的键码值(keyCode)
		case 96:
		name = '0(小键盘)';
		break;
		case 97:
		name = '1(小键盘)';
		break;
		case 98:
		name = '2(小键盘)';
		break;
		case 99:
		name = '3(小键盘)';
		break;
		case 100:
		name = '4(小键盘)';
		break;
		case 101:
		name = '5(小键盘)';
		break;
		case 102:
		name = '6(小键盘)';
		break;
		case 103:
		name = '7(小键盘)';
		break;
		case 104:
		name = '8(小键盘)';
		break;
		case 105:
		name = '9(小键盘)';
		break;
		case 106:
		name = '*(小键盘)';
		break;
		case 107:
		name = '+(小键盘)';
		break;
		case 108:
		name = 'Enter(小键盘)';
		break;
		case 109:
		name = '-(小键盘)';
		break;
		case 110:
		name = '.(小键盘)';
		break;
		case 111:
		name = '/(小键盘)';
		break;
		//功能键键码值(keyCode)
		case 112:
		name = 'F1';
		break;
		case 113:
		name = 'F2';
		break;
		case 114:
		name = 'F3';
		break;
		case 115:
		name = 'F4';
		break;
		case 116:
		name = 'F5';
		break;
		case 117:
		name = 'F6';
		break;
		case 118:
		name = 'F7';
		break;
		case 119:
		name = 'F9';
		break;
		case 121:
		name = 'F10';
		break;
		case 122:
		name = 'F11';
		break;
		case 123:
		name = 'F12';
		break;
		//多媒体键码值(keyCode)
		case 175:
		name = '音量加';
		break;
		case 174:
		name = '音量减';
		break;
		case 179:
		name = '停止';
		break;
		case 173:
		name = '静音';
		break;
		case 172:
		name = '浏览器';
		break;
		case 180:
		name = '邮件';
		break;
		case 170:
		name = '搜索';
		break;
		case 171:
		name = '收藏';
		break;
		default:
		name = undefined;
  	}
  	return name;
  }


});